package cn.sofwin.day0120;

import org.w3c.dom.ls.LSOutput;
/**
 *
 * @author lsp同志
 * @email 1540174302@qq.com
 */
import java.util.Scanner;

public class Menu {









       public void showLoginMenu () {
           Scanner sc = new Scanner(System.in);

          // choose = sc.nextInt();
           System.out.println("欢迎使用我行我素购物管理系统");

           System.out.println("1.登录系统");
           System.out.println("2.退出");
           System.out.println("*******************************************");
           System.out.println("请选择,输入数字:" );
           int choose;
           choose = sc.nextInt();
           switch (choose) {
               case 1:
                   showMainMenu();
                   break;
               case 2:
                   System.out.println("谢谢惠顾");

           }
       }


        public void showMainMenu (){
            Scanner sc = new Scanner(System.in);

            System.out.println("我行我素购物管理主菜单");
            System.out.println("*******************************************");
            System.out.println("1.客户信息管理");
            System.out.println("2.真情回馈");
            System.out.println("*******************************************");
            System.out.println("请选择，输入数字或按0返回上一级菜单:" );
            System.out.println("        " + "我行我素购物管理系统 > 真情回馈");
            System.out.println("*******************************************");
            int choose;
            choose = sc.nextInt();
            switch (choose){
                case 1:
                    showCustMenu();
                    break;
                case 2:
                 showSendGMenu();
                    break;
                case 0:
                   showLoginMenu();
                    break;
            }
        }


        public void showCustMenu () {
            System.out.println("等待开发...");
        }


            public void showSendGMenu () {


                Scanner sc = new Scanner(System.in);

                System.out.println("1.幸运大放送");
                System.out.println("2.幸运抽奖");
                System.out.println("3.生日问候");
                System.out.println("*******************************************");
                System.out.println("请选择,输入数组或按0返回上一级菜单:" );
                int choose;
                choose = sc.nextInt();
                switch (choose){
                    case 1:
                        System.out.println("执行幸运大放送");
                        break;
                    case 2:
                        System.out.println("执行幸运抽奖");
                        break;
                    case 3:
                        System.out.println("生日快乐");
                        break;
                    case 0:
                       showMainMenu();
                        break;


                }
            }




    public static void main(String[] args) {
        Menu menu = new Menu();
        menu.showLoginMenu();

    }
}

